﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Aribaccio.Office
{
    /// <summary>
    /// 
    /// </summary>
    public class OfficeFileModeData
    {
        /// <summary>
        /// 数据文件模式
        /// </summary>
        public OfficeFileMode FileMode { get; set; }
        /// <summary>
        /// 数据Sheet模式
        /// </summary>
        public OfficeSheetMode SheetMode { get; set; }
        /// <summary>
        /// 数据文件后缀扩展名称
        /// </summary>
        public string FileExtensionName { get; set; }
        /// <summary>
        /// 数据文件后缀扩展名筛选字符串
        /// </summary>
        public string FileExtensionFilter { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public OfficeFileModeData()
        {
            this.FileMode = OfficeFileMode.Csv;
            this.SheetMode = OfficeSheetMode.Single;
            this.FileExtensionName = ".csv";
            this.FileExtensionFilter = "Wafer High Frequency Data(*.csv)|*.csv";
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="argFileMode"></param>
        /// <param name="argFileExtensionName"></param>
        /// <param name="argFileExtensionFilter"></param>
        public OfficeFileModeData(OfficeFileMode argFileMode, OfficeSheetMode argSheetMode, string argFileExtensionName, string argFileExtensionFilter)
        {
            this.FileMode = argFileMode;
            this.SheetMode = argSheetMode;
            this.FileExtensionName = argFileExtensionName;
            this.FileExtensionFilter = argFileExtensionFilter;
        }
    }
}
